package duty_info

import (
	"fmt"
	"github.com/robfig/cron/v3"
	"time"
)

func DutyCronInit(c *cron.Cron) {
	view := NewDutyView()
	dutyTaskInit(c, view)
}
func dutyTaskInit(c *cron.Cron, view *DutyView) {
	c.AddFunc("@every 60s", func() {
		fmt.Printf("Duty定时任务-Every five seconds, %s\n", time.Now().Format("15:04:05"))
	})
}
